// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) definits fieldsfirst ansi space safe 
// Source File Name:   AppletResources.java

package jones;

import java.applet.Applet;
import java.util.HashMap;
import javax.swing.ImageIcon;

public class AppletResources
{

    private static HashMap icons = new HashMap();

    public AppletResources()
    {
    }

    public static ImageIcon getIcon(Object value)
    {
        return (ImageIcon)icons.get(value);
    }

    public void registerIcon(Object value, ImageIcon icon)
    {
        icons.put(value, ((Object) (icon)));
    }

    public static void init(Applet applet)
    {
        java.net.URL codeBase = applet.getCodeBase();
        icons.put(((Object) (((Object) (jones.behavior.Escape.class)))), ((Object) (new ImageIcon(applet.getImage(codeBase, "images/escape.gif")))));
        icons.put(((Object) (((Object) (jones.behavior.WallFollow.class)))), ((Object) (new ImageIcon(applet.getImage(codeBase, "images/wall-follow.gif")))));
        icons.put(((Object) (((Object) (jones.behavior.Cruise.class)))), ((Object) (new ImageIcon(applet.getImage(codeBase, "images/cruise.gif")))));
        icons.put(((Object) (((Object) (jones.behavior.Search.class)))), ((Object) (new ImageIcon(applet.getImage(codeBase, "images/wander.gif")))));
        icons.put(((Object) (((Object) (jones.behavior.Avoid.class)))), ((Object) (new ImageIcon(applet.getImage(codeBase, "images/avoid.gif")))));
        icons.put(((Object) (((Object) (jones.behavior.Collect.class)))), ((Object) (new ImageIcon(applet.getImage(codeBase, "images/home.gif")))));
    }

}
